package com.zoo.diannaopeijian.service;

import com.zoo.diannaopeijian.common.page.Page;
import com.zoo.diannaopeijian.domain.Repertory;

import java.util.List;

/**
 * 仓库服务
 */
public interface RepertoryService {
    /**
     * 获取仓库
     * @param repertory
     * @return
     */
    List<Repertory> getRepertory(Repertory repertory);

    /**
     * 分页获取仓库
     * @param page
     * @param repertory
     * @return
     */
    List<Repertory> getRepertoryWithPage(Page page, Repertory repertory);

    /**
     * 模糊查询获取仓库
     * @param repertory
     * @return
     */
    List<Repertory> getFuzzyRepertory(Repertory repertory);

    /**
     * 分页模糊查询获取仓库
     * @param page
     * @param repertory
     * @return
     */
    List<Repertory> getFuzzyRepertoryWithPage(Page page, Repertory repertory);

    /**
     * 新增仓库
     * @param repertory
     * @return
     */
    boolean addRepertory(Repertory repertory);

    /**
     * 删除仓库
     * @param repertoryId
     * @return
     */
    boolean deleteRepertoryById(Integer repertoryId);

    /**
     * 更新仓库
     * @param repertory
     * @return
     */
    boolean updateRepertory(Repertory repertory);
}
